<!DOCTYPE html>
<html lang="en">
    <head>
        {include file="public/header"}
        <link href="/admin/vendor/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css">
    </head>
    <body>
        <div class="col-lg-12">
		    <form role="form" class="form" action="update" method="post" id="form">
                <input class="form-control" type="hidden" name="id" value="{$data.stu_id}">
                <div class="col-lg-3 col-sm-3">
                    <div class="form-group">
		                <label>名字：</label>
		                <input type="text" class="form-control" name="name" value="{$data.stu_name}">
                    </div>
                    <div class="form-group">
		                <label>别名：</label>
		                <input type="text" class="form-control" name="subname" value="{$data.stu_subname}">
		            </div>
		            <div class="form-group">
		                <label>登录账号：</label>
		                <input type="text" class="form-control" name="login" value="{$data.stu_login}">
		            </div>
		            <div class="form-group">
		                <label>登录密码：</label>
		                <input type="text" class="form-control" name="password" value="{$data.stu_password}">
		            </div>
		            <div class="form-group">
		                <label>性别：</label>
                        <select name="sex" class="form-control">
                            <option value="0" <?php if($data['stu_sex'] = 0) echo "selected"?>>女</option>
                            <option value="1" <?php if($data['stu_sex'] = 1) echo "selected"?>>男</option>
                            <option value="2" <?php if($data['stu_sex'] = 3) echo "selected"?>>其他</option>
                        </select>
                    </div>
		        </div>
                <div class="col-lg-3 col-sm-3">
		            <div class="form-group">
		                <label>入训时间：</label>
		                <input type="text" class="form-control date" name="entertime"  id="entertime" value="{$data.stu_entertime}">

		            </div>
		            <div class="form-group">
		                <label>结训时间：</label>
		                <input type="text" class="form-control date" name="endtime" id="endtime" value="{$data.stu_endtime}">
		            </div>
                    <div class="form-group">
		                <label>手机号码：</label>
		                <input type="text" class="form-control" name="tel" value="{$data.stu_tel}">
		            </div>
		            <div class="form-group">
		                <label>邮箱：</label>
		                <input type="text" class="form-control" name="email" value="{$data.stu_email}">
		            </div>
		            <div class="form-group">
		                <label>QQ号码：</label>
		                <input type="text" class="form-control" name="qq" value="{$data.stu_qq}">
		            </div>                            
                </div>
                <div class="col-lg-6 col-sm-6">
                    <div class="form-group">
		                <label>详细地址</label>
		                <input type="text" class="form-control" name="address" value="{$data.stu_address}">
		            </div>
		            <div class="form-group">
		                <div type="botton" class="btn btn-primary" onclick="edu.submit('form',this)">确定</div>
		            </div>
                </div>
                <div class="clearfix"></div>
		    </form>
        </div>
        {include file="public/board"}
        {include file="public/javascript"}
        <script src="/admin/vendor/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
        <script src="/admin/vendor/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
        <script type="text/javascript" src="/admin/js/jquery.form.js"></script>
        <script type="text/javascript" src="/admin/script/student/edit.js"></script>
        <script>
         $('#entertime,#endtime').datetimepicker({
             language:"zh-CN", //汉化
             todayBtn : true,  //显示今天按钮
             autoclose : true,   //选择日期后自动关闭日期选择框
             minView: "month",   //不显示时分秒
             showMeridian: 1,
             format : 'yy-mm-dd'
         });
        </script>
        <script type="text/javascript" src="/admin/script/student/edit.js"></script>
    </body>
</html>
